package com.fcat.common.user.rpc;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by ssen on 2020/7/6
 * <p>
 * https://way.jd.com/he/freeweather?city=shenzhen&appkey=2beb869409923234222c9c2687c9e103
 */
@FeignClient(name = "JDWay", url = "https://way.jd.com", path = "/he")
public interface IJDService {
    /**
     * 根据userId修改密码
     *
     * @return
     */
    @RequestMapping(value = "/freeweather", method = RequestMethod.GET)
    JSONObject getWeather(@RequestParam("city") String city, @RequestParam("appkey") String appkey);
}
